scores = {'zs': 100, 'ls': 98, 'ww': 45}

# 获取所有的key
keys = scores.keys()
print(keys, type(keys))
print(list(keys))

# 获取所有的value
values = scores.values()
print(values, type(values))
print(list(values))

# 获取所有的键值对
items = scores.items()
print(items, type(items))

# 元组
lst = list(items)
print(lst, type(lst), type(lst[0]))

# 遍历
for item in scores:
    print(item, scores[item], scores.get(item))
